package br.com.framework.util.security;

import org.apache.commons.codec.digest.DigestUtils;


/**
 * Classe utilitaria para criptografia
 * @author Cleber Moura
 *
 */
public abstract class CryptoUtils {

	/**
	 * Gera um hash SHA1 da string informada.
	 * @param value
	 * @return
	 */
	public static String getEncryptedSha1(String value) {
		byte[] sha1 = DigestUtils.sha1(value);
		return DigestUtils.sha1Hex(sha1);
	}

}
